/**
 * 2018年12月15日下午3:21:23
 * @author 谢进财
 */
package com.baihang.project.ds.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

import com.baihang.platform.config.PlatformWebMvcConfig;
import com.baihang.project.ds.HandlerInterceptor.DsInterceptor;

/**
 * @author whati
 *
 */
@Configuration
@EnableWebMvc
public class DsWebMvcConfig extends PlatformWebMvcConfig {

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		// TODO Auto-generated method stub
		registry.addInterceptor(new DsInterceptor()).addPathPatterns("/**");
	}
	
}
